let regexp = /(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)(\d)/;
let str = '1234567890';
let result = regexp.exec(str);
console.log(result);
console.log(
    RegExp.$1,
    RegExp.$2,
    RegExp.$3,
    RegExp.$4,
    RegExp.$5,
    RegExp.$6,
    RegExp.$7,
    RegExp.$8,
    RegExp.$9,
    RegExp.$10
    );

let result2 = /(\w)/.exec('abc');
console.log(result2,RegExp.$1,RegExp.$2);